{% extends "base.html" %}
{% block head_title %}SGD Gene Detail - {{ genename }}{% endblock %}
{% block title %}SGD Gene Detail - {{ genename }}{% endblock %}
{% block scripts %}
<script type = "text/javascript" src ="/media/javascript/jquery-1.3.2.js">
</script>
<script type = "text/javascript">
$(document).ready(function(){

	$(".hide h3:first").addClass("active");
	$(".hide table:not(:first)").hide();

	$(".hide h3").click(function(){

	  $(this).next("table").slideToggle("slow")
	  .siblings("table:visible").slideUp("slow");
	  $(this).toggleClass("active");
	  $(this).siblings("h3").removeClass("active");

	});

});
</script>
{% endblock scripts %}
{% block content %}
<h3>Gene Information</h3>
{{ genename }}
<p><b>Aliases:</b> {{ genename.Other_name }}</p>
<p><b>Description:</b> {{ genename.Description }}</p>
<p><b>Phenotype:</b> {{ genename.Phenotype }}</p>


<div class="hide">
<div class="grid_12">
<h3>Phenotypes ({{ phenotypes.count }}) <input type="button" value="Hide/Show" class="delete"/></h3>
<table>
	<thead>
		<tr>
		<th>Phenotype</th>
		<th>Experiment</th>
		<th>Mutant Type</th>
		<th>Chemical</th>
		<th>Condition</th>
		<th>Details</th>
		</tr>
	</thead>
	<tbody>
{% for phenotype in phenotypes %}
		<tr>
		<td>{{ phenotype.Phenotype }}</td>
		<td>{{ phenotype.Experiment_Type }}</td>
		<td>{{ phenotype.Mutant_Type }}</td>
		<td>{{ phenotype.Chemical }}</td>
		<td>{{ phenotype.Condition }}</td>
		<td>{{ phenotype.Details }}</td>
		</tr>
{% endfor %}
	</tbody>
</table>
</div>
</div>
<div class="hide">
<div class="grid_6"
<h3>Physical Interactions ({{ interactions_physical_bait.count }} Bait and {{interactions_physical_hit.count }} Hits)<input type="button" value="Hide/Show" class="delete"/></h3>
<table>
	<thead>
		<tr>
		<th>Bait</th>
		<th>Hit</th>
		<th>Experiment</th>
		<th>Screen</th>
		<th>Type</th>
		<th>Notes</th>
		</tr>
	</thead>
	<tbody>
{% for interaction in interactions_physical_bait %}
		<tr>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Bait }}">{{ interaction.Standard_Gene_Name_Bait }}</a></td>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Hit }}">{{ interaction.Standard_Gene_Name_Hit }}</td>
		<td>{{ interaction.Experiment_Type }}</td>
		<td>{{ interaction.Genetic_or_Physical_Interaction }}</td>
		<td>{{ interaction.Manually_Curated_or_High_Throughput }}</td>
		<td>{{ interaction.Notes }}</td>
		</tr>
{% endfor %}
{% for interaction in interactions_physical_hit %}
		<tr>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Bait }}">{{ interaction.Standard_Gene_Name_Bait }}</a></td>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Hit }}">{{ interaction.Standard_Gene_Name_Hit }}</td>
		<td>{{ interaction.Experiment_Type }}</td>
		<td>{{ interaction.Genetic_or_Physical_Interaction }}</td>
		<td>{{ interaction.Manually_Curated_or_High_Throughput }}</td>
		<td>{{ interaction.Notes }}</td>
		</tr>
{% endfor %}
	</tbody>
</table>
</div>
</div>
<div class="hide">
<div class="grid_6">
<h3>Genetic Interactions ({{ interactions_genetic_bait.count }} Bait and {{interactions_genetic_hit.count }} Hits)<input type="button" value="Hide/Show" class="delete"/></h3>
<table>
	<thead>
		<tr>
		<th>Bait</th>
		<th>Hit</th>
		<th>Experiment</th>
		<th>Screen</th>
		<th>Type</th>
		<th>Notes</th>
		</tr>
	</thead>
	<tbody>
{% for interaction in interactions_genetic_bait %}
		<tr>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Bait }}">{{ interaction.Standard_Gene_Name_Bait }}</a></td>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Hit }}">{{ interaction.Standard_Gene_Name_Hit }}</td>
		<td>{{ interaction.Experiment_Type }}</td>
		<td>{{ interaction.Genetic_or_Physical_Interaction }}</td>
		<td>{{ interaction.Manually_Curated_or_High_Throughput }}</td>
		<td>{{ interaction.Notes }}</td>
		</tr>
{% endfor %}
{% for interaction in interactions_genetic_hit %}
		<tr>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Bait }}">{{ interaction.Standard_Gene_Name_Bait }}</a></td>
		<td><a href="/experimentdb/sgd/{{ interaction.Standard_Gene_Name_Hit }}">{{ interaction.Standard_Gene_Name_Hit }}</td>
		<td>{{ interaction.Experiment_Type }}</td>
		<td>{{ interaction.Genetic_or_Physical_Interaction }}</td>
		<td>{{ interaction.Manually_Curated_or_High_Throughput }}</td>
		<td>{{ interaction.Notes }}</td>
		</tr>
{% endfor %}
	</tbody>
</table>
</div>
<div>
{% endblock content %}
